home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1008 b | 31 lines | [TEXT/GEOL] |
- Item 6282466 30-Jan-91 07:54PST
-
- From: CDA0220 DEV Bell Northern Resrch,B Papp,IDV
-
- To: APPLE.BUGS Apple Bugs Reporting
- MACAPP.TEST MacApp SQA Team
- MACAPP.TECH$ MacApp Technical
-
- ------------------------------------------------------------------------------
-
- Sub: SetIcon bug in 2.0.1
-
- Here is a nasty bug with TIcon that crept into MacApp 2.0.1.
-
- This code was added to the TIcon.SetIcon method in an attempt to set
- fPreferColor based on the icon data:
-
- IF GetHandleSize(theIcon) <> kBWIconSize THEN
- fPreferColor := TRUE
- ELSE
- fPreferColor := FALSE;
-
- Unfortunately, theIcon is typically a purgeable 'ICON' resource handle. If the
- resource has been purged, GetHandleSize returns 0 and MacApp thinks it has a
- colour icon. Next time the view is drawn you crash big time when the ICON is
- treated as a cicn.
-
- Gordon Eastman
- Bell-Northern Research
-
-